import type { RouteRecordRaw } from 'vue-router'

import Layout from '@/layouts/index.vue'

export default [
  {
    path: '/channel',
    name: 'channel',
    component: Layout,
    meta: { title: { zh_CN: '渠道管理', en_US: 'Channel' }, icon: 'store', orderNo: 1 },
    redirect: '/channel/list',
    children: [
      {
        path: 'list',
        name: 'ChannelList',
        meta: { title: { zh_CN: '渠道列表', en_US: 'Channel List' } },
        component: () => import('@/pages/channel/list/index.vue'),
      },
      {
        path: 'guide',
        name: 'ChannelGuide',
        meta: { title: { zh_CN: '渠道导游', en_US: 'Channel Guide' } },
        component: () => import('@/pages/channel/guide/index.vue'),
      },
    ],
  },
] satisfies RouteRecordRaw[]
